<?php
class Affine
{
	private $a;
	private $b;

	public function calculer($x)
	{
		return ($x*$this->a)+$this->b;
	}
	
	public function setA($a)
	{
		$this->a=$a;
	}
	
	public function setB($b)
	{
		$this->b=$b;
	}
	
	public function afficher()
	{
		echo "le a vaut ".$this->a."et le b vaut ".$this->b;
	}
}

	
?>
